<%@ page import="com.ccc3gc.entity.User" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 95184
  Date: 2024/9/19
  Time: 下午2:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>在线用户</h2>
<ul>
    <%
        List<User> users = (List<User>) application.getAttribute("users");
        for (User user : users) {
    %>
    <li><%=user.getUserName()%>
    </li>
    <%}%>
</ul>
</body>
</html>
